package com.synergy.stockflow.warehouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.synergy.stockflow.product.entity.Material;
import com.synergy.stockflow.warehouse.entity.InventorySnapshot;
import com.synergy.stockflow.warehouse.entity.InventoryTransaction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InventorySnapshotMapper extends BaseMapper<InventorySnapshot> {
    List<InventoryTransaction> selectById(Page<InventoryTransaction> page,
                                          @Param("materialId") String materialId,
                                          @Param("warehouseId") String warehouseId);

}